//
//  TextFieldViewController.m
//  TextField
//

#import "TextFieldViewController.h"

@implementation TextFieldViewController

- (void)viewDidLoad {
    [super viewDidLoad];

	CGRect textRect = CGRectMake(10, 10, 300, 26);
	UITextField *myTextField = [[UITextField alloc] initWithFrame:textRect];
	myTextField.borderStyle = UITextBorderStyleRoundedRect;
	myTextField.placeholder = @"Default";
	myTextField.keyboardType = UIKeyboardTypeDefault;
	[self.view addSubview:myTextField];
	[myTextField release];

	textRect = CGRectMake(10, 50, 300, 26);
	myTextField = [[UITextField alloc] initWithFrame:textRect];
	myTextField.borderStyle = UITextBorderStyleRoundedRect;
	myTextField.placeholder = @"NumberPad";
	myTextField.keyboardType = UIKeyboardTypeNumberPad;
	[self.view addSubview:myTextField];
	[myTextField release];
	
	textRect = CGRectMake(10, 90, 300, 26);
	myTextField = [[UITextField alloc] initWithFrame:textRect];
	myTextField.borderStyle = UITextBorderStyleRoundedRect;
	myTextField.placeholder = @"EmailAddress";
	myTextField.keyboardType = UIKeyboardTypeEmailAddress;
	[self.view addSubview:myTextField];
	[myTextField release];
}

- (void)dealloc {
    [super dealloc];
}

@end
